package ligne2vie.topos.server.bo;

import java.io.Serializable;

import javax.jdo.annotations.PersistenceCapable;

/**
 * The class {@link Refuge} is a business object modeling a refuge, inheriting from a {@link MapPoint}.
 * 
 * @author thuguerre
 * @since 1.0.0
 */
@PersistenceCapable(detachable="true")
public class Refuge extends MapPoint implements Serializable {

	/**
	 * Default serial UID.
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * Specialized constructor.
	 * 
	 * @param name
	 *            Refuge's name.
	 * @param altitude
	 *            Refuge's altitude.
	 * @param latitude
	 *            Refuge's latitude.
	 * @param longitude
	 *            Refuge's longitude.
	 * @param description
	 *            Refuge's description.
	 */
	public Refuge(String name, int altitude, double latitude, double longitude, String description) {

		super();
		this.name = name;
		this.latitude = latitude;
		this.longitude = longitude;
		this.altitude = altitude;
		this.description = description;
		this.state = EntityState.TO_VERIFY;
	}
}
